<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
    <link href="style/css.css" rel="stylesheet" type="text/css" />
    <link href="style/product_top.css" rel="stylesheet" type="text/css" />
    <link href="style/product_center.css" rel="stylesheet" type="text/css" />
    <script src="lib/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="lib/json2.js" type="text/javascript"></script>
    <script src="lib/jsmart.js" type="text/javascript"></script>
    <script src="script/app.js" type="text/javascript"></script>
    <script src="script/urledit.js" type="text/javascript"></script>
    <script id="productcount" type="text/x-jsmart-tmpl">
	共{$hits.total}条记录
    </script>
    <script id="supplier" type="text/x-jsmart-tmpl">  
	{foreach $hits.hits as $name => $supplier}
		<li>
			<div class="fl gysqy_lb_tp">
				<img src="resources/img/gysqy_pic01.jpg" width="122" height="120" /></div>
			<div class="fl gysqy_lb_nr">
				<div class="gysqy_lb_title">
					<a style="_line-height: 18px;" href="/Manufacturer/Index?mId=8176" title="{$supplier._source.companyname}"
						target="_blank">{$supplier._source.companyname}</a></div>
				<div class="gysqy_lb_wz">
				</div>
				<div class="gysqy_lb_lx" title="类型：销售商  主营产品: 水泵、风机">
					类型：
					{if $supplier._source.doctype == "supplier"}
						供应商
					{/if}
				</div>
				<div class="gysqy_lb_dz">
					地址：{$supplier._source.companyaddress}</div>
			</div>
			<div class="fl gysqy_lb_an">
				<a href="/Manufacturer/Index?mId=8176" title="{$supplier._source.companyname}" target="_blank">
					<img src="resources/img/lxsj.png" width="92" height="28" border="0" /></a>
			</div>
		</li>
	{/foreach}
    </script>
    <script id="productpage" type="text/x-jsmart-tmpl">
	<div class="page">
		<div class="pagination">
			{if $pagecount > 1}			
				<a class="pageNum"><b>
				{$currentpage}
				</b>/<b>
				{$pagecount}
				</b></a>	
				{if (1 != $currentpage)}
					<a href="{urlset('pageIndex', 1)}" class="first">首页</a>
					<a href="{urlset('pageIndex', $currentpage-1)}" class="prev">上一页</a>
				{/if}	
				
				{for $i=$start to $end}
					{if ($i == $currentpage)}
						<span class="current">{$i}</span>
					{else}
						<a href="{urlset('pageIndex', $i)}">{$i}</a>
					{/if}
				{/for}
				
				{if ($pagecount != $currentpage)}
					<a href="{urlset('pageIndex', $currentpage+1)}" class="first">下一页</a>
					<a href="{urlset('pageIndex', $pagecount)}" class="last">尾页</a>
				{/if}	
			{/if}
		</div>
	</div>
    </script>
</head>
<body>
    <center>
        <div id="box">
            <div class="left fl">
            
                <div class="gys">
                    <form>
                    <div class="gys_textbox fl">
                        <input name="" type="text" class="gys_wbk" id="keyM" /></div>
                    <div class="fl">
                        <a href="#" class="btnManufacturerSearch1">
                            <img src="resources/img/cz_an.jpg" width="100" height="33" border="0" /></a></div>
                    </form>
                </div>
                <div style="clear: both;">
                </div>
                <center>
                    <div class="main_wzdh">
                        所在位置：<a href="/Category/CategoryList">材料信息</a> >
                        <label>
                            找材料</label></div>
                    <div class="product_top">
                        <div class="product_top_nr">
                            <div class="product_top_table">
                                <table width="978" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td class="product_top_xz">
                                                <table width="992" border="0" cellspacing="0" cellpadding="0">
                                                    <div width="92px;" valign="top" class="product_top_xz_title">
                                                        当前筛选条件：
                                                    </div>    
                                                        <div class="product_top_xz_nr">
                                                            <div class="product_top_xz_wz">
                                                                <a title="去除当前类别--@ViewBag.topCategory" class="property" href="@categoryUrl" style="height:18px;">
                                                                    类别：一级
                                                                </a>
                                                            </div>
                                                            <a href="@categoryUrl">
                                                                <img src="resources/img/close.gif" width="17" height="19" border="0" /></a>
                                                        </div>   
                                                        <div class="product_top_xz_nr">
                                                            <div class="product_top_xz_wz">
                                                                <a title="去除当前类别--@ViewBag.topCategory" class="property" href="@url">类别：二级
                                                                </a>
                                                            </div>
                                                            <a href="@url">
                                                                <img src="resources/img/close.gif" width="17" height="19" border="0" /></a>
                                                        </div>  
                                                        <div class="product_top_xz_nr">
                                                            <div class="product_top_xz_wz">
                                                                <a title="去除当前品牌--@ViewBag.brandName" class="property" href="@url">品牌：品牌
                                                                </a>
                                                            </div>
                                                            <a href="@url">
                                                                <img src="resources/img/close.gif" width="17" height="19" border="0" /></a>
                                                        </div>
                                                        <div class="product_top_xz_nr">
                                                            <div class="product_top_xz_wz">
                                                                <a title="去除当前属性值" class="property" href="@url">
                                                                    属性
                                                                </a>
                                                            </div>
                                                            <a href="@url">
                                                                <img src="resources/img/close.gif" width="17" height="19" border="0" /></a>
                                                        </div>
                                                </table>
                                            </td>
                                        </tr>
                        
                                        <input type="hidden" value="@Model.CategoryGroup.Count()" id="categorycount" />
                                        <tr>
                                            <td class="product_top_table_x" valign="top">
                                                <table width="978" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td width="100" class="product_top_title">
                                                            分类：
                                                        </td>
                                                        <td class="product_top_all">
                                                            <a class="currentall">全部</a>
                                                        </td>
                                                        <td class="product_top_wz">
                                                            <ul>
                                                                <li>
                                                                        <a href="@url" title="@cat.Name (@cat.Count)">分类</a>
                                                                </li>
                                                            </ul>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="product_top_table_x" valign="top">
                                                <table width="978" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td width="100" class="product_top_title">
                                                            品牌：
                                                        </td>
                                                        <td class="product_top_all">
                                                            <a class="currentall">全部</a>
                                                        </td>
                                                        <td class="product_top_wz">
                                                            <ul>
                                                                <li>
                                                                        <a href="@url" title="@brand.Name (@brand.Count)">品牌</a>
                                                                </li>
                                                            </ul>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="product_top_table_x" valign="top">
                                                <table width="978" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td width="100" class="product_top_title">
                                                            属性名：
                                                        </td>
                                                        <td class="product_top_all">
                                                            <a class="currentall">全部</a>
                                                        </td>
                                                        <td class="product_top_wz">
                                                            <ul>
                                                                <li>
                                                                        <a href="@url" title="@sub.Name (@sub.Count)">属性</a>
                                                                </li>
                                                            </ul>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                </center>
                <!-- gysqy_lb -->
                <div class="cpss">
                    <div class="cpss_left fl">
                        <div class="cpss_dh ">
                            <div class="result fl">
                                搜索结果</div>
                            <div class="eight fl" style="width: 200px;" id="count">
                            </div>
                            <div class="cpss_px fr" style="width: 112px;">
                                <a href="#" id="uptime">按照日期排序</a>
                            </div>
                            <div class="cpss_dx fr" style="width: 112px;">
                                <a href="#" id="downtime">按照日期排序</a>
                            </div>
                            <div class="nf">
                                <div class="cpss_lb">
                                    <ul id="productlist">
                                        <li class="cpss_lb_d">
                                            <div class="cpss_lb_top">
                                                <div class="cpss_lb_top_cj">
                                                    <b>商家</b>：<a style="_line-height: 20px;" href="/Manufacturer/Index?mId=8176" title="上海企翔泵业有限公司"
                                                        target="_blank">上海企翔泵业有限公司</a></div>
                                                <div class="fl cpss_lb_tp">
                                                    <div class="cpss_lb_bt">
                                                        <a href="/Product/Index?pId=609183" title="IS清水离心泵全泵" target="_blank">IS清水离心泵全泵</a></div>
                                                </div>
                                                <div class="fl cpss_lb_nr">
                                                    <div class="cpss_lb_pp fl" title="品牌：企翔;;">
                                                        <b>品牌:</b>企翔;
                                                    </div>
                                                    <div class="nf cpss_lb_pp_dw">
                                                        <div class="fl cpss_lb_xlxh">
                                                            <b>系列型号</b>：</div>
                                                        <div class="fl cpss_lb_xlxh_nr" title="50-32-125">
                                                            50-32-125</div>
                                                        <div class="nf">
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="fl cpss_lb_jg">
                                                    <div class="cpss_lb_jg_nr">
                                                        <img src="resources/img/please.jpg" width="106" height="42"  style="cursor: pointer;" />
                                                    </div>
                                                </div>
                                                <div class="cpss_lb_down nf">
                                                    <div class="fl cpss_lb_down_l">
                                                        <div class="fl cpss_lb_down_dq">
                                                            地区：上海</div>
                                                        <div class="fl update">
                                                            更新时间：2012-04-28</div>
                                                    </div>
                                                    <div class="fl cpss_lb_down_r">
                                                        <img src="resources/img/lxsj.png" width="92" height="28" style="cursor: pointer;" />
                                                    </div>
                                                </div>
                                            </div>
                                        </li>
                                    </ul>
                                </div>
                                <div style="clear: both;">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="page">
                </div>
            </div>
        </div>
        <script type="text/javascript">
            $(document).ready(
			function () {
			    $.ajax({
			        url: searchpath + '/supplier/_search' + pageparam,
			        type: 'GET',
			        dataType: 'json',
			        success: function (data) {

			        }
			    });

			    $(".btnManufacturerSearch1").live("click", function () {
			        var searchvalue = $("#keyM").val();
			        searchparams = "?searchvalue=" + searchvalue;
			        myurl.remove("pageIndex");
			        myurl.remove("pagesize");
			        myurl.remove("searchvalue");
			        window.location.href = myurl.url() + searchparams;
			    });
			}
		);
        </script>
    </center>
</body>
</html>
